package com.demo.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;


/**
 * Created by lmn on 2018/4/4.
 */
@Configuration
@ConfigurationProperties(prefix ="com.demo.opensource")
@PropertySource(value ="classpath:resource.properties")
public class ConfigDTO{
    private String serviceName;
    private String ip;

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
}
